<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/
/**
 * 测试使用的链接
 */
Route::any('test','WechatController@test');
Route::any('test2','WechatController@test2');
Route::any('test3','WechatController@test3');
Route::get('test_user','IndexController@test_user'); //用户视图测试界面
Route::get('test_index','IndexController@index'); //用户视图测试界面
Route::any('question_test','IndexController@question_test'); //调查问卷测试界面
Route::get('re2','IndexController@questionReport');//调查问卷结果
/**
 * 注册后才可以看到的界面
 */
Route::group(['middleware' => ['login']], function () {
    Route::get('/','IndexController@index');
    Route::get('index.html','IndexController@index');
    Route::get('consult.html','IndexController@consult');
    Route::get('description.html','IndexController@description');
    Route::get('doctorInfo.html','IndexController@doctorInfo');
    Route::get('doctorList.html','IndexController@doctorList');
    Route::get('Earnings.html','IndexController@Earnings');
    Route::get('feedback.html','IndexController@feedback');
    Route::get('kiting.html','IndexController@kiting');
    Route::get('mine.html','IndexController@mine');
    Route::get('myattention.html','IndexController@myattention');
    Route::get('order.html','IndexController@order');
    Route::get('submitOrder.html','IndexController@submitOrder');
    Route::get('changeInfo.html','IndexController@changeInfo');
    Route::get('changePassword.html','IndexController@changePassword');
    Route::get('changeNicName.html','IndexController@changeNicName');
    Route::get('changePhoneNumber.html','IndexController@changePhoneNumber');
    Route::get('diaryBook.html','IndexController@diaryBook');
    Route::get('orderSuccess.html','IndexController@orderSuccess');
    Route::get('pay.html','IndexController@pay');
    Route::get('orderPay.html','IndexController@orderPay');
    Route::get('searchDoctor.html','IndexController@searchDoctor');
    Route::get('writeDairy.html','IndexController@writeDairy');
    Route::get('hairDairy.html','IndexController@hairDairy');
    Route::get('doctorJoin.html','IndexController@doctorJoin');
    Route::any('question.html','IndexController@question'); //调查问卷界面
    Route::get('questionReport.html','IndexController@questionReport');//调查问卷结果
    Route::get('questionJudge.html','IndexController@questionJudge');//调查问卷结果
});
/**
 * 微信相关的链接
 */
Route::group(['middleware' => ['wechat.oauth']], function () {
    Route::any('user','WechatController@user'); //用户补全授权信息界面
});
Route::any('wechat', 'WechatController@serve'); //微信初始化链接，认证和菜单